From bfab035d1b9552c2239203644cb4535c5ef4b45b Mon Sep 17 00:00:00 2001 From: Jeremy Bryant Date: Mon, 18 Mar 2024 23:18:30 +0000 Subject: [PATCH] Simplify code to use null * which-key.el (which-key--create-buffer-and-show): Use null. --- which-key.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index 2f2c2804f55..f2f86269fc1 100644 --- a/which-key.el +++ b/which-key.el @@ -2692,7 +2692,7 @@ Finally, show the buffer." (formatted-keys (which-key--get-bindings prefix-keys from-keymap filter)) (prefix-desc (key-description prefix-keys))) - (cond ((= (length formatted-keys) 0) + (cond ((null formatted-keys) (message "%s- which-key: There are no keys to show" prefix-desc)) ((listp which-key-side-window-location) (setq which-key--last-try-2-loc -- 2.30.2